namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class TagMap : ClassMap<TagDataModel>
    {
        public TagMap()
        {
            this.Table("Tag");
            this.LazyLoad();
            this.CompositeId()
                .KeyProperty(x => x.Name)
                .KeyProperty(x => x.CultureCode, "CultureCode");

            //References(x => x.Culture).Column("CultureCode");
            //HasMany(x => x.BlogArticleTags);
            //HasMany(x => x.ForumTopicTags);
            //HasMany(x => x.VideoTags);
        }
    }
}